package com.powernode.security.custom;

import com.powernode.model.entity.system.SysUser;
import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.userdetails.User;

import java.util.ArrayList;

@Getter
@Setter
public class CustomUser extends User {
    private SysUser sysUser;

    public CustomUser(SysUser sysUser) {
        super(sysUser.getUsername(), sysUser.getPassword(), new ArrayList<>());
        this.sysUser = sysUser;
    }
}

